package com.peas.platform.module.icims.contract.initial.adapter.repository.po;

import java.util.*;
import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 初始合同付款信息
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_contract_initial_pay`")
public class ContractInitialPayPo extends BasePo {

    // 合同ID
    // 【初始合同表】
    @Comment(value = "合同ID")
    @NotNull(message = "合同ID不能为空")
    @TableField(value = "`contract_initial_id`", jdbcType = JdbcType.BIGINT)
    private Long contractInitialId;

    // 付款批次号
    @Comment(value = "付款批次号")
    @Size(max = 200, message = "付款批次号不能超过200个字符")
    @TableField(value = "`batch_no`", jdbcType = JdbcType.VARCHAR)
    private String batchNo;

    // 付款条件
    @Comment(value = "付款条件")
    @Size(max = 1000, message = "付款条件不能超过1000个字符")
    @TableField(value = "`condition`", jdbcType = JdbcType.VARCHAR)
    private String condition;

    // 约定收款金额
    @Comment(value = "约定收款金额")
    @TableField(value = "`amount`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amount;

    // 金额占比
    @Comment(value = "金额占比")
    @TableField(value = "`amount_rate`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amountRate;

    // 预计付款时间
    @Comment(value = "预计付款时间")
    @TableField(value = "`payee_time`", jdbcType = JdbcType.TIMESTAMP)
    private Date payeeTime;

    // 收款单位
    @Comment(value = "收款单位")
    @Size(max = 200, message = "收款单位不能超过200个字符")
    @TableField(value = "`payee_company`", jdbcType = JdbcType.VARCHAR)
    private String payeeCompany;

}
